package top.healthylife.gateway.platform.eye.api.config;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import top.healthylife.gateway.core.config.BaseConfig;
import top.healthylife.gateway.dto.annotation.SystemInfo;
import top.healthylife.gateway.dto.annotation.SystemInfoField;
import top.healthylife.gateway.dto.cons.DataPeriod;

import java.io.Serializable;

/**
 * @author cl
 * @version 1.0
 * @date 2020/4/10 17:48
 */
@EqualsAndHashCode(callSuper = true)
@SystemInfo(systemName = "天眼查", periodValidity = DataPeriod.T3, shortName = "tyc", url = "http://www.baidu.com", desc =
        "天眼查是一家杭州企业想嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻")
@Data
@Configuration
@Accessors(chain = true)
@ConfigurationProperties(prefix = "system")
public class SystemConfig extends BaseConfig implements Serializable {
    private static final long serialVersionUID = -4735148160159528848L;

    @SystemInfoField(value = "授权token")
    String token;

    String authorization = "authorization";
}
